﻿function mapRange0080() {
    jzcode.event.sendEvent('MapRange0080', null);
}

function mapRange0040() {
    jzcode.event.sendEvent('MapRange0040', null);
}
function mapRange0020() {
    jzcode.event.sendEvent('MapRange0020', null);
}
function mapRange0010() {
    jzcode.event.sendEvent('MapRange0010', null);
}
function mapRange0005() {
    jzcode.event.sendEvent('MapRange0005', null);
}

function register() {
    jzcode.event.registerEvent('MapRange0080', function () {
        option.visualMap[0].range = [0, 80];
        myChart.setOption(option);
    });

    jzcode.event.registerEvent('MapRange0040', function () {
        option.visualMap[0].range = [0, 40];
        myChart.setOption(option);
    });
    jzcode.event.registerEvent('MapRange0020', function () {
        option.visualMap[0].range = [0, 20];
        myChart.setOption(option);
    });
    jzcode.event.registerEvent('MapRange0010', function () {
        option.visualMap[0].range = [0, 10];
        myChart.setOption(option);
    });
    jzcode.event.registerEvent('MapRange0005', function () {
        option.visualMap[0].range = [0, 5];
        myChart.setOption(option);
    });
}